package com.wxxymakers.cklabrecruit.execption;

import lombok.Getter;

/**
 * @AUTHOR soft
 * @DATE 2018/11/14 14:36
 * @DESCRIBE 重复报名异常
 */
public class ReApplyException extends Exception {

    /**
     * 重复报名原因类型
     * 1、学号重复，这时允许重复报名
     * 2、邮箱重复，提示替换邮箱，不可重复报名
     */
    @Getter
    private int type;

    public ReApplyException() {
        super("重复报名！");
    }

    public ReApplyException(String m) {
        super(m);
    }

    public ReApplyException(int type, String m) {
        super(m);
        this.type = type;
    }
}
